/*
 * Copyright 2023 http://gcpaas.gccloud.com
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package com.gccloud.dataroom.core.module.manage.extend;

import java.util.List;

/**
 * 页面扩展接口
 * @author hongyang
 * @version 1.0
 * @date 2023/8/1 15:10
 */
public interface IDataRoomExtendService {

    /**
     * 页面删除拓展
     * 会在页面删除后调用
     * 已废弃，请使用afterDelete方法
     * @param code
     */
    @Deprecated
    default void deleteByCode(String code) {}

    /**
     * 页面新增后的处理, 可在此处处理权限等
     * @param code 新增的页面code
     */
    default void afterAdd(String code) {}

    /**
     * 页面删除后的处理, 可在此处处理权限等
     * @param code 删除的页面code
     */
    default void afterDelete(String code) {}

}